              <#include "include/_meta.html">
<title>日志信息列表</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> 系统日志 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
	<div class="text-c"> 日期范围：
		<input type="text" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'datemax\')||\'%y-%M-%d\'}'})" id="datemin" class="input-text Wdate" style="width:120px;">
		-
		<input type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'datemin\')}',maxDate:'%y-%M-%d'})" id="datemax" class="input-text Wdate" style="width:120px;">
		<input type="text" class="input-text" style="width:250px" placeholder="操作业务" id="busiName" name="busiName">
		<input type="text" class="input-text" style="width:250px" placeholder="操作类型" id="busiType" name="busiType">
		
		<button type="submit" class="btn btn-success" id="searchBusilogs" name=""><i class="Hui-iconfont">&#xe665;</i> 搜日志</button>
	</div>
	<div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="r">共有数据：<strong id="pageTotal">54</strong> 条</span> </div>
	<table id="busiLogTable" class="table table-border table-bordered table-bg table-hover">
		<thead>
			<tr>
				<th scope="col" colspan="9">账户列表</th>
			</tr>
			<tr class="text-c">
				<th width="150">编号</th>
				<th width="90">操作业务</th>
				<th width="150">操作类型</th>
				<th width="130">操作时间</th>
				<th width="100">操作内容</th>
				<th width="100">操作</th>
			</tr>
		</thead>
		<tbody>

		</tbody>
	</table>
</div>

<#include "include/_footer.html">

<script type="text/javascript">

$(function(){

    initTable();
  
});


var initTable = function(){

$('#busiLogTable').dataTable( {
    	"processing": false,
      	"serverSide": true,
      	"bSort": false,
      	"bFilter":false,
      	"bLengthChange":false,
      	"iDisplayLength":10,
      	"bRetrieve":true,
      	"ajax": {
            "url": "/busilogs",
           	"data":function(d){
		        d.busiName = $('#busiName').val();
				d.busiType = $('#busiType').val();
		        d.datemin = $('#datemin').val();
		        d.datemax = $('#datemax').val();
		    },
            "type": "get"
        },
        "columns": [
            { "data": "loginId" },
            { "data": "busiName" },
            { "data": "busiType" },
			{ "data": "addTime" },
            { "data": "busiConent" },
            { "data": "" }
      	],
      	"columnDefs": [
	        {
		          "targets": [5],
		          "data": "id",
		          "render": function(data, type, full) {
		          	var action_look = "<a style='text-decoration:none' onClick=\"busilog_look('日志详细信息','/busilogget?id="+full.loginId+"','2','800','500')\" href=\"javascript:;\" title=\"详情\"><i class=\"Hui-iconfont\">&#xe665;</i></a>";
		            	return action_look;
		          }
	        }	        
      	],
      	"fnRowCallback" : function(nRow, aData, iDisplayIndex) { 
      					nRow.className="text-c";         
                        $('td:eq(0)', nRow).html(iDisplayIndex+1);                   
                        return nRow;  
         },
	    "fnDrawCallback": function(oSettings) {
		      //获取后台方式 直接可以拿到json 之后进行处理
		      var json=jQuery.parseJSON(oSettings.jqXHR.responseText);  
		      $("#pageTotal").html(json.recordsTotal);
	    }
  
      	
    });

}

		/*查看会员等级详细信息*/
		function busilog_look(title,url,id,w,h){
			layer_show(title,url,w,h);
		}
		
		/* 根据条件查询日志信息*/
		$("#searchBusilogs").click(function(){
			
			$("#busiLogTable").dataTable().fnClearTable();
       		 initTable();
		});
</script>
</body>
</html>